import request from '@/utils/request'

// 查询合同医生关联列表
export function listContract(query) {
  return request({
    url: '/signature/contract/list',
    method: 'get',
    params: query
  })
}

// 查询合同医生关联详细
export function getContract(contractDoctorId) {
  return request({
    url: '/signature/contract/' + contractDoctorId,
    method: 'get'
  })
}

// 新增合同医生关联
export function addContract(data) {
  return request({
    url: '/signature/contract',
    method: 'post',
    data: data
  })
}

// 修改合同医生关联
export function updateContract(data) {
  return request({
    url: '/signature/contract',
    method: 'put',
    data: data
  })
}

// 删除合同医生关联
export function delContract(contractDoctorId) {
  return request({
    url: '/signature/contract/' + contractDoctorId,
    method: 'delete'
  })
}

// 导出合同医生关联
export function exportContract(query) {
  return request({
    url: '/signature/contract/export',
    method: 'get',
    params: query
  })
}